package com.lion.ball.app.models.params.search;

import java.sql.Timestamp;
import java.sql.Timestamp;

/**
 * @author Chris Chan
 * Create on 2025-10-18 01:16
 * Use for: 食品SKU 数据查询参数
 * Explain:
 * 
 */
public class OfdFoodSkuSearchParam {
    // 主键
    private long id;
    // 编码
    private long code;
    // SPU编码
    private long spuCode;
    // 名称
    private String name;
    // 价格
    private Double price;
    // 描述
    private String description;
    // 创建时间
    private long createTime;
    // 更新时间
    private long updateTime;
    // 是否删除 0 - 未删除 1 - 已删除
    private int isDeleted;

    // 无参构造方法
    public OfdFoodSkuSearchParam() {
    }

    // 全参数构造方法
    public OfdFoodSkuSearchParam(long id, long code, long spuCode, String name, Double price, String description, long createTime, long updateTime, int isDeleted) {
        this.id = id;
        this.code = code;
        this.spuCode = spuCode;
        this.name = name;
        this.price = price;
        this.description = description;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
    }

    // 全参数create生成器
    public static OfdFoodSkuSearchParam create(long id, long code, long spuCode, String name, Double price, String description, long createTime, long updateTime, int isDeleted) {
        return new OfdFoodSkuSearchParam(id, code, spuCode, name, price, description, createTime, updateTime, isDeleted);
    }

    // 全参数of生成器
    public static OfdFoodSkuSearchParam of(long id, long code, long spuCode, String name, Double price, String description, long createTime, long updateTime, int isDeleted) {
        return new OfdFoodSkuSearchParam(id, code, spuCode, name, price, description, createTime, updateTime, isDeleted);
    }
    // region Getter和Setter方法
    public long getId() {
        return id;
    }

    public OfdFoodSkuSearchParam setId(long id) {
        this.id = id;
        return this;
    }

    public long getCode() {
        return code;
    }

    public OfdFoodSkuSearchParam setCode(long code) {
        this.code = code;
        return this;
    }

    public long getSpuCode() {
        return spuCode;
    }

    public OfdFoodSkuSearchParam setSpuCode(long spuCode) {
        this.spuCode = spuCode;
        return this;
    }

    public String getName() {
        return name;
    }

    public OfdFoodSkuSearchParam setName(String name) {
        this.name = name;
        return this;
    }

    public Double getPrice() {
        return price;
    }

    public OfdFoodSkuSearchParam setPrice(Double price) {
        this.price = price;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public OfdFoodSkuSearchParam setDescription(String description) {
        this.description = description;
        return this;
    }

    public long getCreateTime() {
        return createTime;
    }

    public OfdFoodSkuSearchParam setCreateTime(long createTime) {
        this.createTime = createTime;
        return this;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public OfdFoodSkuSearchParam setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public OfdFoodSkuSearchParam setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
        return this;
    }

    // endregion Getter和Setter方法
}
